package org.hxyjs.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class News implements Serializable {
    private String neno;

    private String nename;

    private String nestate;

    private String neimg;

    public String getNeemail() {
        return neemail;
    }

    public void setNeemail(String neemail) {
        this.neemail = neemail;
    }

    private String nedesc;

    private String neemail;

    public String getNepic() {
        return nepic;
    }

    public void setNepic(String nepic) {
        this.nepic = nepic;
    }

    private String nepic;

    private static final long serialVersionUID = 1L;

    public String getNeno() {
        return neno;
    }

    public void setNeno(String neno) {
        this.neno = neno;
    }

    public String getNename() {
        return nename;
    }

    public void setNename(String nename) {
        this.nename = nename;
    }

    public String getNestate() {
        return nestate;
    }

    public void setNestate(String nestate) {
        this.nestate = nestate;
    }

    public String getNeimg() {
        return neimg;
    }

    public void setNeimg(String neimg) {
        this.neimg = neimg;
    }

    public String getNedesc() {
        return nedesc;
    }

    public void setNedesc(String nedesc) {
        this.nedesc = nedesc;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        News other = (News) that;
        return (this.getNeno() == null ? other.getNeno() == null : this.getNeno().equals(other.getNeno()))
            && (this.getNename() == null ? other.getNename() == null : this.getNename().equals(other.getNename()))
            && (this.getNestate() == null ? other.getNestate() == null : this.getNestate().equals(other.getNestate()))
            && (this.getNeimg() == null ? other.getNeimg() == null : this.getNeimg().equals(other.getNeimg()))
            && (this.getNedesc() == null ? other.getNedesc() == null : this.getNedesc().equals(other.getNedesc()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getNeno() == null) ? 0 : getNeno().hashCode());
        result = prime * result + ((getNename() == null) ? 0 : getNename().hashCode());
        result = prime * result + ((getNestate() == null) ? 0 : getNestate().hashCode());
        result = prime * result + ((getNeimg() == null) ? 0 : getNeimg().hashCode());
        result = prime * result + ((getNedesc() == null) ? 0 : getNedesc().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", neno=").append(neno);
        sb.append(", nename=").append(nename);
        sb.append(", nestate=").append(nestate);
        sb.append(", neimg=").append(neimg);
        sb.append(", nedesc=").append(nedesc);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}